<?php
/**
 * Created by IntelliJ IDEA.
 * User: wanglu
 * Date: 2017/9/5
 * Time: 11:05
 */

/**
 * Created by wanglu on 2017/9/5.
 */


class Login_service extends MY_Service
{


    public function __construct()
    {
        parent::__construct();
        $this->load->model('user_model');
    }

    public function get_admin_by_name($name) {
        return   $this->user_model->getRecord(array('username' => $name));
    }
}